package com.open.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.open.system.dao.LoanContactDao;
import com.open.system.domain.LoanContactDO;
import com.open.system.service.LoanContactService;



@Service
public class LoanContactServiceImpl implements LoanContactService {
	@Autowired
	private LoanContactDao loanContactDao;
	
	@Override
	public LoanContactDO get(Long id){
		return loanContactDao.get(id);
	}
	
	@Override
	public List<LoanContactDO> list(Map<String, Object> map){
		return loanContactDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return loanContactDao.count(map);
	}
	
	@Override
	public List<LoanContactDO> list2(Map<String, Object> map){
		return loanContactDao.list2(map);
	}
	
	@Override
	public int count2(Map<String, Object> map){
		return loanContactDao.count2(map);
	}
	
	@Override
	public int save(LoanContactDO loanContact){
		return loanContactDao.save(loanContact);
	}
	
	@Override
	public int update(LoanContactDO loanContact){
		return loanContactDao.update(loanContact);
	}
	
	@Override
	public int remove(Long id){
		return loanContactDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return loanContactDao.batchRemove(ids);
	}

	@Override
	public int updateHasemptyByUserId(Long id){
		return loanContactDao.updateHasemptyByUserId(id);
	}
}
